import request from '@/utils/request'

// 查询skc级采购周期列表
export function listPurchaseCycleSkc(query) {
  return request({
    url: '/purchase/PurchaseCycleSkc/list',
    method: 'get',
    params: query
  })
}
// 查询采购周期列表
export function synData(query) {
  return request({
    url: '/purchase/PurchaseCycleSkc/synData',
    method: 'get',
    params: query
  })
}
// 查询skc级采购周期详细
export function getPurchaseCycleSkc(id) {
  return request({
    url: '/purchase/PurchaseCycleSkc/' + id,
    method: 'get'
  })
}

// 新增skc级采购周期
export function addPurchaseCycleSkc(data) {
  return request({
    url: '/purchase/PurchaseCycleSkc',
    method: 'post',
    data: data
  })
}

// 修改skc级采购周期
export function updatePurchaseCycleSkc(data) {
  return request({
    url: '/purchase/PurchaseCycleSkc',
    method: 'put',
    data: data
  })
}

// 删除skc级采购周期
export function delPurchaseCycleSkc(id) {
  return request({
    url: '/purchase/PurchaseCycleSkc/' + id,
    method: 'delete'
  })
}
